package com.example.tass.domain;

import cn.tass.exceptions.TAException;

public class MyAsymDecryptRequest extends MyBaseRequest{
    private String keyId;
    private int keyIdType;
    private String keyAccessCode;
    private String encrypt;
    private int encFormat;
    private String transEncKeyId;
    private String transEncKeyAccessCode;
    private int transEncMode;
    private int transEncPadMode;
    private String transEncIv;

    public MyAsymDecryptRequest() {
    }

    public String getKeyId() {
        return this.keyId;
    }

    public void setKeyId(String keyId) {
        this.keyId = keyId;
    }

    public int getKeyIdType() {
        return this.keyIdType;
    }

    public void setKeyIdType(int keyIdType) {
        this.keyIdType = keyIdType;
    }

    public String getKeyAccessCode() {
        return this.keyAccessCode;
    }

    public void setKeyAccessCode(String keyAccessCode) {
        this.keyAccessCode = keyAccessCode;
    }

    public String getEncrypt() {
        return this.encrypt;
    }

    public void setEncrypt(String encrypt) {
        this.encrypt = encrypt;
    }

    public int getEncFormat() {
        return this.encFormat;
    }

    public void setEncFormat(int encFormat) {
        this.encFormat = encFormat;
    }

    public String getTransEncKeyId() {
        return this.transEncKeyId;
    }

    public void setTransEncKeyId(String transEncKeyId) {
        this.transEncKeyId = transEncKeyId;
    }

    public String getTransEncKeyAccessCode() {
        return this.transEncKeyAccessCode;
    }

    public void setTransEncKeyAccessCode(String transEncKeyAccessCode) {
        this.transEncKeyAccessCode = transEncKeyAccessCode;
    }

    public int getTransEncMode() {
        return this.transEncMode;
    }

    public void setTransEncMode(int transEncMode) {
        this.transEncMode = transEncMode;
    }

    public int getTransEncPadMode() {
        return this.transEncPadMode;
    }

    public void setTransEncPadMode(int transEncPadMode) {
        this.transEncPadMode = transEncPadMode;
    }

    public String getTransEncIv() {
        return this.transEncIv;
    }

    public void setTransEncIv(String transEncIv) {
        this.transEncIv = transEncIv;
    }

    public void validate() throws TAException {
        this.checkParamIsEmpty(this.keyId, "keyId");
        this.checkParamIsEmpty(this.encrypt, "encrypt");
    }
}
